let { uploadFiles } = require('../utils/upload');
module.exports.uploadImg = async (req, res) => {
    const images = uploadFiles({
    })
    images(req, res, (err) => {
        if (err) {
            console.log('图片上传失败', err)
        } else {
            console.log('上传成功', req.files);
            res.send({
                status: 1,
                message: '上传成功',
                filename: req.files[0].filename
            })
        }
    })
}
